import request from '@/utils/request'

const repair = '/repair'
//维修管理
//维修记录-查询一条数据
export function getRepair(id) {
  return request({
    url: repair + '/repair/' + id,
    method: 'get',
  })
}
//维修记录-新增一条数据
export function createRepair(data) {
  return request({
    url: repair + '/repair',
    method: 'post',
    data,
  })
}
//维修记录-更新一条数据
export function putRepair(data) {
  return request({
    url: repair + '/repair',
    method: 'put',
    data,
  })
}
//维修记录-删除多条数据
export function detRepair(data) {
  return request({
    url: repair + '/repair',
    method: 'delete',
    data,
  })
}
//维修记录-根据{id}获取一条数据
export function getRepairById(id) {
  return request({
    url: repair + '/repair/' + id,
    method: 'get',
  })
}
//维修记录-删除单条数据
export function detOneRepair(id) {
  return request({
    url: repair + '/repair/' + id,
    method: 'delete',
  })
}
//维修记录-获取全部数据
export function getAllRepair() {
  return request({
    url: repair + '/repair/all',
    method: 'get',
  })
}
//维修记录-插入多条数据
export function batchAllRepair(data) {
  return request({
    url: repair + '/repair/batchInsert',
    method: 'post',
    data,
  })
}
//维修记录-更新多条数据
export function updateAllRepair(data) {
  return request({
    url: repair + '/repair/batchUpdate',
    method: 'put',
    data,
  })
}
//维修记录-更新多条数据
export function getPageRepair(params) {
  return request({
    url: repair + '/repair/page',
    method: 'get',
    params,
  })
}
/* 人员部门查询 */
export function getPendRepairUserList(params) {
  return request({
    url: repair + '/settings/repairUser/getPendRepairUserList/page',
    method: 'get',
    params,
  })
}

/* 人员部门查询 */
export function getPendDispatchUserList(params) {
  return request({
    url: repair + '/settings/dispatchUser/getPendDispatchUserList/page',
    method: 'get',
    params,
  })
}

//维修人员-新增一条数据
export function createRepairUser(data) {
  return request({
    url: repair + '/settings/repairUser',
    method: 'post',
    data,
  })
}
//维修人员-更新一条数据
export function updateRepairUser(data) {
  return request({
    url: repair + '/settings/repairUser',
    method: 'put',
    data,
  })
}
//维修人员-插入多条数据
export function batchInsertRepairUser(data) {
  return request({
    url: repair + '/settings/repairUser/batchInsert',
    method: 'post',
    data,
  })
}
//维修人员-删除多条数据
export function deleteRepairUser(data) {
  return request({
    url: repair + '/settings/repairUser',
    method: 'delete',
    data,
  })
}
//维修人员-根据{id}获取一条数据
export function getRepairUserById(id) {
  return request({
    url: repair + '/settings/repairUser/' + id,
    method: 'get',
  })
}
//维修人员-更新多条数据
export function getPageRepairUser(params) {
  return request({
    url: repair + '/settings/repairUser/page',
    method: 'get',
    params,
  })
}
//维修人员-获取全部
export function getMaintenanceGroupUserCheckAll(params) {
  return request({
    url: repair + '/maintenanceGroupUser/checkAll',
    method: 'get',
    params,
  })
}

//维修人员-获取全部
export function getPageRepairUserListAll(params) {
  return request({
    url: repair + '/settings/repairUser/all',
    method: 'get',
    params,
  })
}

//调度人员-新增
export function batchCreateDispatchUser(data) {
  return request({
    url: repair + '/settings/dispatchUser/batchInsert',
    method: 'post',
    data,
  })
}

//调度人员-删除多条数据
export function deleteDispatchUser(data) {
  return request({
    url: repair + '/settings/dispatchUser',
    method: 'delete',
    data,
  })
}

//调度人员-分页
export function getPageDispatchUser(params) {
  return request({
    url: repair + '/settings/dispatchUser/page',
    method: 'get',
    params,
  })
}
//调度人员-全部数据
export function getDispatchUserAll(params) {
  return request({
    url: repair + '/settings/dispatchUser/all',
    method: 'get',
    params,
  })
}

//报修单-新增
export function createRepairOrder(data) {
  return request({
    url: repair + '/repairOrder',
    method: 'post',
    data,
  })
}
//报修单-删除
export function deleteRepairOrder(data) {
  return request({
    url: repair + '/repairOrder',
    method: 'delete',
    data,
  })
}
//报修单-根据{id}获取一条数据
export function getRepairOrderById(id) {
  return request({
    url: repair + '/repairOrder/' + id,
    method: 'get',
  })
}
//报修单-分页查询
export function getRepairOrderCustomizeListPage(data) {
  return request({
    url: repair + '/repairOrder/customizeList/page',
    method: 'post',
    data,
  })
}

//报修单-撤销
export function revokeRepairOrder(id) {
  return request({
    url: repair + '/repairOrder/revoke/' + id,
    method: 'post',
  })
}

//报修单-派单
export function dispatchRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/dispatch',
    method: 'post',
    data,
  })
}
//报修单-改派
export function updateDispatchRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/updateDispatch',
    method: 'post',
    data,
  })
}
//报修单-评价
export function confirmRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/confirm',
    method: 'post',
    data,
  })
}

//报修单-取消完工
export function cannelRepairOrder(id) {
  return request({
    url: repair + '/repairOrder/cancel/' + id,
    method: 'post',
  })
}
//报修单-催单
export function reminderRepairOrder(id) {
  return request({
    url: repair + '/repairOrder/reminder/' + id,
    method: 'post',
  })
}

// //报修单-完工
export function completeDealRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/completeDeal',
    method: 'post',
    data,
  })
}

// //报修单-处理登记
export function repairDealAffair(data) {
  return request({
    url: repair + '/repairDealAffair',
    method: 'post',
    data,
  })
}
// //报修单-处理登记-处理记录全部数据
export function getRepairDealAffairAll(params) {
  return request({
    url: repair + '/repairDealAffair/all',
    method: 'get',
    params,
  })
}
// //报修单-处理登记-派单记录全部数据
export function getRepairDispatchAffairAll(params) {
  return request({
    url: repair + '/repairDispatchAffair/all',
    method: 'get',
    params,
  })
}
// //报修单-修改
export function updateRepairOrder(data) {
  return request({
    url: repair + '/repairOrder',
    method: 'put',
    data,
  })
}
// //报修单-提交
export function submitRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/submit',
    method: 'post',
    data,
  })
}
// //报修单-新建提交
export function submitNewRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/submitWithData',
    method: 'post',
    data,
  })
}
//报修单-审核通过
export function approvedRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/approved',
    method: 'post',
    data,
  })
}
//报修单-审核驳回
export function rejectRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/reject',
    method: 'post',
    data,
  })
}
//报修单-审核拒绝
export function refuseRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/refuse',
    method: 'post',
    data,
  })
}
//报修单-撤回
export function recallRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/recall',
    method: 'post',
    data,
  })
}
//报修单-销审
export function cancelCheckRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/cancelCheck',
    method: 'post',
    data,
  })
}
// //报修单-待提交删除
export function deleteSavedRepairOrder(id) {
  return request({
    url: repair + '/repairOrder/delete/' + id,
    method: 'delete',
  })
}

//维修单-新增
export function createMaintenceOrder(data) {
  return request({
    url: repair + '/maintenanceOrder',
    method: 'post',
    data,
  })
}
//维修单-根据{id}获取一条数据
export function getMaintenceOrderById(id) {
  return request({
    url: repair + '/maintenanceOrder/' + id,
    method: 'get',
  })
}
//维修单-获取一条数据
export function getMaintenceOrder(params) {
  return request({
    url: repair + '/maintenanceOrder',
    method: 'get',
    params,
  })
}
//维修单-分页查询
export function getMaintenceOrderCustomizeListPage(data) {
  return request({
    url: repair + '/maintenanceOrder/customizeList/page',
    method: 'post',
    data,
  })
}
export function getMaintenceOrderCustomizeListAll(data) {
  return request({
    url: repair + '/maintenanceOrder/customizeList/all',
    method: 'post',
    data,
  })
}
//维修单-完工
export function dealCompleteMaintenceOrder(data) {
  return request({
    url: repair + '/maintenanceOrder/dealComplete',
    method: 'post',
    data,
  })
}
//维修单-取消完工
export function cannelMaintenceOrder(id) {
  return request({
    url: repair + '/maintenanceOrder/cancel/' + id,
    method: 'post',
  })
}
//维修单-故障确认
export function faultConfirmMaintenceOrder(data) {
  return request({
    url: repair + '/maintenanceOrder/faultConfirm',
    method: 'post',
    data,
  })
}
//维修单-转交
export function passOnMaintenceOrder(data) {
  return request({
    url: repair + '/maintenanceOrder/passOn',
    method: 'post',
    data,
  })
}
//维修单-接单
export function acceptMaintenceOrder(id) {
  return request({
    url: repair + '/maintenanceOrder/accept/' + id,
    method: 'post',
  })
}
//维修单-配件使用-新增一条数据
export function createRepairPartsAffair(data) {
  return request({
    url: repair + '/repairPartsAffair/batchInsert',
    method: 'post',
    data,
  })
}

// 维修单-配件使用-获取全部数据
export function getRepairPartsAffairAll(params) {
  return request({
    url: repair + '/repairPartsAffair/all',
    method: 'get',
    params,
  })
}
// 维修单-配件使用-获取分页数据
export function getRepairPartsAffairPage(params) {
  return request({
    url: repair + '/repairPartsAffair/page',
    method: 'get',
    params,
  })
}
//维修单-配件使用-清空
export function delByMaintenanceIdRepairPartsAffair(data) {
  return request({
    url: repair + '/repairPartsAffair/delByMaintenanceId',
    method: 'post',
    data,
  })
}
// 维修单--获取全部数据
export function getMaintenceOrderAll(params) {
  return request({
    url: repair + '/maintenanceOrder/all',
    method: 'get',
    params,
  })
}

export function getRepairCompleteAffairAll(params) {
  return request({
    url: repair + '/repairCompleteAffair/all',
    method: 'get',
    params,
  })
}
//养护计划-新增计划
export function createDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan',
    method: 'post',
    data,
  })
}
//养护计划-更新一条数据
export function updateDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan',
    method: 'put',
    data,
  })
}
//养护计划-根据{id}获取一条数据
export function getDeviceMaintenancePlanById(id) {
  return request({
    url: repair + '/deviceMaintenance/plan/' + id,
    method: 'get',
  })
}
//养护计划-停用
export function disabledDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/disabled',
    method: 'post',
    data,
  })
}
//养护计划-启用
export function enabledDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/enabled',
    method: 'post',
    data,
  })
}
//养护计划-分页查询
export function getDeviceMaintenancePlanrCustomizeListPage(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/customizeList/page',
    method: 'post',
    data,
  })
}
//养护计划-分组查询
export function getDeviceMaintenancePlanCustomizeGroups(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/customizeGroups',
    method: 'post',
    data,
  })
}

//养护计划-导出excel
export function excelDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/excel',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//养护计划-打印
export function printDeviceMaintenancePlan(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/print',
    method: 'post',
    data,
  })
}
// 打印明细
export function printDeviceMaintenancePlanDetail(data) {
  return request({
    url: repair + '/deviceMaintenance/plan/printDetail',
    method: 'post',
    data,
  })
}

//养护计划-项目获取全部数据
export function getDeviceMaintenancePlanDetailList(params) {
  return request({
    url: repair + '/deviceMaintenance/planDetail/list',
    method: 'get',
    params,
  })
}
//养护任务-分页查询
export function getDeviceMaintenanceTaskCustomizeListPage(data) {
  return request({
    url: repair + '/deviceMaintenance/task/customizeList/page',
    method: 'post',
    data,
  })
}
//养护任务-新增一条数据
export function createDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task',
    method: 'post',
    data,
  })
}
//养护任务-更新一条数据
export function updateDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task',
    method: 'put',
    data,
  })
}
//养护任务-更新一条数据
export function updateByIdWhenStatusNotStart(data) {
  return request({
    url: repair + '/deviceMaintenance/task/updateByIdWhenStatusNotStart',
    method: 'put',
    data,
  })
}
//养护任务-根据{id}获取一条数据
export function getDeviceMaintenanceTaskById(id) {
  return request({
    url: repair + '/deviceMaintenance/task/' + id,
    method: 'get',
  })
}
//养护任务-根据{id}删除一条数据
export function deleteTaskById(id) {
  return request({
    url: repair + '/deviceMaintenance/task/' + id,
    method: 'delete',
  })
}
//养护任务-分组查询
export function getDeviceMaintenanceTaskCustomizeGroups(data) {
  return request({
    url: repair + '/deviceMaintenance/task/customizeGroups',
    method: 'post',
    data,
  })
}

//养护任务-接单
export function workDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/work',
    method: 'post',
    data,
  })
}
//养护任务-取消
export function cancelDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/cancel',
    method: 'post',
    data,
  })
}
//养护任务-转交
export function transferDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/transfer',
    method: 'post',
    data,
  })
}

//养护任务-完工
export function completeDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/complete',
    method: 'post',
    data,
  })
}

//养护任务-配件使用-获取全部数据
export function getDeviceMaintenanceTaskAccessoriesAll(params) {
  return request({
    url: repair + '/deviceMaintenance/task/accessories/all',
    method: 'get',
    params,
  })
}

//养护任务-配件使用-获取全部数据-自定义查询
export function getDeviceMaintenanceTaskAccessoriesCustomizeListAll(data) {
  return request({
    url: repair + '/deviceMaintenance/task/accessories/customizeList/all',
    method: 'post',
    data,
  })
}
//养护任务-配件使用-自定义分页查询
export function getDeviceMaintenanceTaskAccessoriesCustomizeListPage(data) {
  return request({
    url: repair + '/deviceMaintenance/task/accessories/customizeList/page',
    method: 'post',
    data,
  })
}
//养护任务-配件使用-清空
export function clearDeviceMaintenanceTaskAccessories(params) {
  return request({
    url: repair + '/deviceMaintenance/task/accessories/clear',
    method: 'post',
    params,
  })
}
//养护任务-养护项目-获取全部数据
export function getDeviceMaintenanceTaskProgramAll(params) {
  return request({
    url: repair + '/deviceMaintenance/task/program/all',
    method: 'get',
    params,
  })
}
//养护任务-获取全部数据
export function getDeviceMaintenanceTaskAll(params) {
  return request({
    url: repair + '/deviceMaintenance/task/all',
    method: 'get',
    params,
  })
}
//养护任务-配件使用-自定义分页查询
export function saveDeviceMaintenanceTaskAccessoriesList(data) {
  return request({
    url: repair + '/deviceMaintenance/task/accessories/batchInsert',
    method: 'post',
    data,
  })
}
//养护任务-导出excel
export function excelDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/excel',
    method: 'post',
    data,
    responseType: 'blob',
  })
}

export function excelDeviceMaintenanceTaskDetail(data) {
  return request({
    url: repair + '/deviceMaintenance/task/excelDetail',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//养护任务-打印
export function printDeviceMaintenanceTask(data) {
  return request({
    url: repair + '/deviceMaintenance/task/print',
    method: 'post',
    data,
  })
}
export function printDeviceMaintenanceTaskDetail(data) {
  return request({
    url: repair + '/deviceMaintenance/task/printDetail',
    method: 'post',
    data,
  })
}
//养护任务-养护执行-更新多条数据
export function updateBatchListDeviceMaintenanceTaskProgram(data) {
  return request({
    url: repair + '/deviceMaintenance/task/program/updateBatchList',
    method: 'put',
    data,
  })
}
export function downloadFileRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/customizeList/download/file',
    method: 'post',
    responseType: 'blob',
    data,
  })
}

//维修组-全部数据
export function getMaintenanceGroupAll(params) {
  return request({
    url: repair + '/maintenanceGroup/all',
    method: 'get',
    params,
  })
}

export function createMaintenanceGroup(data) {
  return request({
    url: repair + '/maintenanceGroup',
    method: 'post',
    data,
  })
}
export function updateMaintenanceGroup(data) {
  return request({
    url: repair + '/maintenanceGroup',
    method: 'put',
    data,
  })
}
//维修组-获取详情
export function getMaintenanceGroupById(id) {
  return request({
    url: repair + '/maintenanceGroup/' + id,
    method: 'get',
  })
}
//维修组-针对人员分组-分页查询
export function getMaintenanceGroupsUserPage(params) {
  return request({
    url: repair + '/maintenanceGroupUser/userGroups/page',
    method: 'get',
    params,
  })
}
//维修组-人员-分页查询
export function getMaintenanceGroupUserPage(params) {
  return request({
    url: repair + '/maintenanceGroupUser/page',
    method: 'get',
    params,
  })
}
//维修组-人员-插入多条数据
export function batchInsertMaintenanceGroupUser(data) {
  return request({
    url: repair + '/maintenanceGroupUser/batchInsert',
    method: 'post',
    data,
  })
}

//维修组-删除单条数据
export function deleteMaintenanceGroupById(id) {
  return request({
    url: repair + '/maintenanceGroup/' + id,
    method: 'delete',
  })
}

export function deleteMaintenanceGroupUser(data) {
  return request({
    url: repair + '/maintenanceGroupUser',
    method: 'delete',
    data,
  })
}
export function updateMaintenanceGroupUser(data) {
  return request({
    url: repair + '/maintenanceGroupUser',
    method: 'put',
    data,
  })
}
export function getSelectUserWithPermission(params) {
  return request({
    url: repair + '/maintenanceGroupUser/selectUserWithPermission',
    method: 'get',
    params,
  })
}
export function transferRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/transfer',
    method: 'post',
    data,
  })
}

// 维修单 完工 时间获取
export function summaryWorkingHours(params) {
  return request({
    url: repair + '/repairDealAffair/summaryWorkingHours',
    method: 'get',
    params,
  })
}

// 维修费用统计
export function pageCostStatistics(params) {
  return request({
    url: repair + '/maintenanceOrder/pageCostStatistics',
    method: 'get',
    params,
  })
}
// 维修工时用统计
export function pageTimeStatistics(params) {
  return request({
    url: repair + '/maintenanceOrder/pageTimeStatistics',
    method: 'get',
    params,
  })
}

//维修费用导出
export function excelCostStatistics(params) {
  return request({
    url: repair + '/maintenanceOrder/excelCostStatistics',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//维修费用打印
export function printCostStatistics(data) {
  return request({
    url: repair + '/maintenanceOrder/printCostStatistics',
    method: 'post',
    data,
  })
}

//维修工时导出
export function excelTimeStatistics(params) {
  return request({
    url: repair + '/maintenanceOrder/excelTimeStatistics',
    method: 'get',
    params,
    responseType: 'blob',
  })
}
//维修工时打印
export function printTimeStatistics(data) {
  return request({
    url: repair + '/maintenanceOrder/printTimeStatistics',
    method: 'post',
    data,
  })
}

/** 故障库管理 左边tree*/
export function getFaultClassifyTree(params) {
  return request({
    url: repair + '/settings/faultClassify/tree',
    method: 'get',
    params,
  })
}
// 故障库管理右边列表
export function getFaultLibraryPage(params) {
  return request({
    url: repair + '/settings/faultLibrary/page',
    method: 'get',
    params,
  })
}
// 故障库管理 新增tree
export function addSettingsFaultClassify(data) {
  return request({
    url: repair + '/settings/faultClassify',
    method: 'post',
    data,
  })
}
// 故障库管理 修改tree
export function getSettingsFaultClassify(id) {
  return request({
    url: repair + '/settings/faultClassify/' + id,
    method: 'get',
  })
}
export function updateSettingsFaultClassify(data) {
  return request({
    url: repair + '/settings/faultClassify',
    method: 'put',
    data,
  })
}
export function deleteSettingsFaultClassify(data) {
  return request({
    url: repair + '/settings/faultClassify',
    method: 'delete',
    data,
  })
}
// 故障库管理 新增 table
export function addSettingsFaultLibrary(data) {
  return request({
    url: repair + '/settings/faultLibrary',
    method: 'post',
    data,
  })
}
// 故障库管理 修改 table
export function updateSettingsFaultLibrary(data) {
  return request({
    url: repair + '/settings/faultLibrary',
    method: 'put',
    data,
  })
}
export function deleteSettingsFaultLibrary(data) {
  return request({
    url: repair + '/settings/faultLibrary',
    method: 'delete',
    data,
  })
}
//故障库管理 导出
export function excelFaultClassify(params) {
  return request({
    url: repair + '/settings/faultClassify/excel',
    method: 'get',
    params,
    responseType: 'blob',
  })
}

// 委外维修申请-列表
export function getOutsourcingApplicationPage(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/customizeList/page',
    method: 'post',
    data,
  })
}
// 委外维修申请-保存
export function createOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply',
    method: 'post',
    data,
  })
}
// 委外维修申请-提交
export function submitOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/submit',
    method: 'post',
    data,
  })
}
// 委外维修申请-修改
export function updateOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply',
    method: 'put',
    data,
  })
}
// 委外维修申请-删除
export function delOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply',
    method: 'delete',
    data,
  })
}
// 委外维修申请-批量撤回
export function revokeOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/revoke',
    method: 'post',
    data,
  })
}
// 委外维修申请-销审
export function salesOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/cancelAudit',
    method: 'post',
    data,
  })
}
//委外维修申请出库-审核通过
export function approvedOutsourcingApplications(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/approved',
    method: 'post',
    data,
  })
}
//委外维修申请出库-审核驳回
export function rejectOutsourcingApplications(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/reject',
    method: 'post',
    data,
  })
}
//委外维修申请出库-审核拒绝
export function refuseOutsourcingApplications(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/refuse',
    method: 'post',
    data,
  })
}
//委外维修申请出库 -导出
export function excelOutsourcingApplicationExport(data) {
  return request({
    url: repair + `/assetEntrustMaintenanceApply/excelList`,
    method: 'POST',
    data,
    responseType: 'blob',
  })
}
// 委外维修申请出库-保存并提交
export function createOutsourcingApplicationAndSave(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/saveAndSubmit',
    method: 'post',
    data,
  })
}
// 委外维修申请出库-明细信息
export function detailOutsourcingApplication(id) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/' + id,
    method: 'get',
  })
}
// 委外维修申请出库-取消维修
export function cancelOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/cancel',
    method: 'post',
    data,
  })
}
// 委外维修申请出库-维修完成
export function completeOutsourcingApplication(data) {
  return request({
    url: repair + '/assetEntrustMaintenanceApply/complete',
    method: 'post',
    data,
  })
}
//维修单-导出excel
export function excelMaintenanceOrder(data) {
  return request({
    url: repair + '/maintenanceOrder/excelOrderList',
    method: 'post',
    data,
    responseType: 'blob',
  })
}
//报修单-导出excel
export function excelRepairOrder(data) {
  return request({
    url: repair + '/repairOrder/excelOrderList',
    method: 'post',
    data,
    responseType: 'blob',
  })
}